/**
 * Copyright (C) 2025 pony working team
 * SPDX-License-Identifier: MulanPSL-2.0
 */

#include <gtest/gtest.h>

#include <pony/lcd/lcd_color.h>

class TestColor : public ::testing::Test
{
protected:
    void SetUp() {};

    void TearDown() {};
};

TEST_F(TestColor, convert)
{
#define RGB565_GREEN   0x07E0
#define ARGB8888_GREEN 0xFF00FF00UL

    EXPECT_EQ(LCD_COLOR_ARGB8888_2_RGB565(ARGB8888_GREEN), RGB565_GREEN);
    EXPECT_EQ(LCD_COLOR_RGB565_2_ARGB8888(RGB565_GREEN), ARGB8888_GREEN);
}
